/**
 * 
 */
package rachauto.exceptions;

import java.io.Serializable;

/**
 * @author said
 *
 */
@SuppressWarnings("serial")
public class RachAutoException extends Exception implements Serializable {
     
	public static final int TECHNICAL = 0;
	public static final int FUNCTIONAL = 1;
	
	private int code;
        
    public RachAutoException(int code, String msg,Throwable cause){
	   super(msg,cause);
	   this.code = code;
    }
    
    public RachAutoException(int code, String msg){
	   super(msg);
	   this.code = code;
    }

	/**
	 * @return the code
	 */
	public int getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(int code) {
		this.code = code;
	}


}
